package cn.MaySoon.shenfu;

public class shenfu {
    int level;
    int jie;
    int xing;


    public int getPlayerlevel() {
        return this.level;
    }
    public int getPlayerxing() {
        return this.xing;
    }
    public int getPlayerjie() {
        return this.jie;
    }
    public String getPlayerShenqiName() {
        return jie+"阶"+xing+"星";
    }

    public void setPlayerlevel(int level) {
        this.level = level;
        int xing =  0;
        int jie = 0;
        if ((level%10)==0) {
            xing = 10;
            jie = level/10;
        }else {
            xing =level%10;
            jie = (level/10)+1;
        }

        this.xing = xing;
        this.jie = jie;
    }
}
